<template>
    <div>
        <input type="text" v-model.number="user"/>
        <input type="text" v-model.lazy="pwd" @keyup.enter="submit"/>
        <p>{{user}}----{{pwd}}</p>
        <button @click="submit">提交</button>
    </div>
</template>
<script>
export default {
    data(){
        return {
            user:0,
            pwd:0
        }
    },
    methods:{
        submit(ev){
           
                console.log(this.user)
                console.log(this.pwd)
            
            
        }
    }
}
</script>